/**
 * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.stylefeng.guns.core;

/**
 * 系统常量
 *
 * @author jwj
 * @date 2019年2月12日 下午9:42:53
 */
public interface RecoverConst {


    /**
     * 是否删除
     */
    Integer DEL_FLAG_TRUE = 1;
    Integer DEL_FLAG_FALSE = 0;


    String MONEY_USER_AMOUNT = "recover:user:";
    String USER_GRADE_REDIS_KEY = "recover:userGrade";

    /**
     * 短信键
     */
    String REDISPREFIX_CODE = "swy:user:account:auth:code:";

    /**
     * 面值1启用2禁用
      */
    Integer CARD_QUOTA_STATU_ENABLE = 1;
    Integer CARD_QUOTA_STATU_DISABLE = 2;

    String QUOTA_STR_KEY = "quota:str:";

    String QUOTA_HASH_KEY = "quota:hash";

    /**
     *  验证码过期时间
     */
    long CODE_EXPIRE_TIME = 300;

    /**
     * 用户订单
     */
     String USER_ORDER_REDIS_KEY = "user:order:orderNn:";

    /**
     * 请求微信临时二维码接口
     */
    String wxQrcodeUrl = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=%s";


    String MESSAGE_EVENT = "event";

    String EVENT_SUB = "subscribe";
    String EVENT_UNSUB = "unsubscribe";


    //用户推荐的初始等级0开始，1为系统的原始用户
    Integer USER_GRADE_LEVEL_INIT = 0;
    Integer USER_GRADE_LEVEL_FIRST = 1;

    //分类上下架状态
    Integer CATEGORY_SELL_STATUS_FALSE = 0;
    Integer CATEGORY_SELL_STATUS_TRUE = 1;

    //订单如果处于处理中，0表示三方销卡机构未销卡，1表示三方销卡机构已经销卡，但是价格和平台成本价格不一致，需要管理员手动审核
    Integer ORDER_DOING_STATUS_ADMIN = 1;
    Integer ORDER_DOING_STATUS_NO_ADMIN = 0;
}
